package kvraft

const (
	OK             = "OK"
	ErrNoKey       = "ErrNoKey"
	ErrWrongLeader = "ErrWrongLeader"
	ErrTimeOut     = "TimeOut"
)

type Err string

// Put or Append
type PutAppendArgs struct {
	Key       string
	Value     string
	Op        string // "Put" or "Append"
	CommandId int
	ClientId  int64
	// You'll have to add definitions here.
	// Field names must start with capital letters,
	// otherwise RPC will break.
}

//type PutAppendReply struct {
//	Err   Err
//	Value string
//}

type GetArgs struct {
	Key       string
	CommandId int
	// You'll have to add definitions here.
}

type CommonReply struct {
	Err   Err
	Value string
}
